<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>库存查询</title>
    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css"/>
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <link rel="stylesheet" href="../../../css/wx/wx-iconfont.css" />

    <script type="text/javascript">
        var pageConfig = {
            jss:["app/wdbj/wdbj"],cb:function (o) {
                parent['wdbj-wdbj']=o;
            }
        };
    </script>
    <script data-main="../../../js/wx/public/config" src="../../../js/require.js"></script>

    <style>

        p {
            margin-bottom: 0;
        }

        .returnCont {
            top: 10%;
            left: 5%;
            right: 5%;
        }

        .mui-scroll-wrapper .mui-table-view-cell {
            padding: 0
        }

        .mui-scroll-wrapper .mui-table-view {
            background: none;
        }

        .mui-scroll-wrapper .mui-table-view:before, .mui-scroll-wrapper .mui-table-view:after {
            height: 0;
        }

        .footBtn .mui-checkbox {
            background: #fff;
            line-height: 50px;
        }

        .footBtn .mui-checkbox input {
            top: -5px;
            left: 15px !important;
        }

        .mui-scroll-wrapper .mui-card-header .mui-checkbox.mui-left label {
            padding-left: 22px;
            font-size: 13px;
        }

        .mui-scroll-wrapper .mui-table-view-cell .mui-card {
            margin: 10px 10px 0 10px;
        }

        .mui-scroll-wrapper .mui-table-view-cell .mui-row .mui-col-xs-9 {
            padding-left: 15px;
            position: relative;
        }

        .mui-table-view-cell:after {
            height: 0
        }
        .number {
            bottom: 0;
        }
        .wf-modal2-cell li {
            padding: 6px 15px;
        }

        .mui-scroll-wrapper{
            top: 55px !important;
        }
    </style>
</head>

<body>
<div class="mui-content">
    <div id="searchDiv" class="mui-input-row searchBox">
        <form action="javascript:app.returnFalse();">
            <i class="mui-icon mui-icon-search"></i>
            <input @search="toSearch" type="search" class="mui-input-clear" placeholder="物料名称|物料编号"
                   v-model.trim="keyword">
        </form>
    </div>
    <!--列表-->
    <div id="scroll" class="mui-scroll-wrapper"  style="top: 45px;bottom: 56px;">
        <div class="mui-scroll">
            <wdbj-listitem :model="items"></wdbj-listitem>
        </div>
    </div>
    <div class="footBtn flexl shadow2" id="wdbj_index">
        <div class="mui-checkbox mui-left" style="flex: 1;" @tap.stop="allcheck"><label>全选</label>
            <input type="checkbox" id="allCheck" style="top:17px;"></div>
        <button type="button" class="puliColor_bg edit" style="width: 50%;" id="btn_bjsq" @tap.stop="bhsq">补货申请</button>
    </div>

</div>


<!--弹出层1 输入信息-->
<div class="returnCont aplyCopy modal1" style="display: none;" id="apply">
    <div class="header">
        <p class="puliColor_font" style="font-size: 15px;">备件申请</p>
    </div>
    <div class="main">
        <div class="form">
            <form class="mui-input-group">

                <!--<div class="mui-input-row">-->
                    <!--<label>客户：</label>-->
                    <!--<input  v-model="info.form.MMRT013" @tap.stop="option" type="button" class="mui-input-clear">-->
                <!--</div>-->
                <!--<div class="mui-input-row">-->
                    <!--<label>服务单号：</label>-->
                    <!--<input  v-model="info.form.MMRT012" @tap.stop="option" type="button" class="mui-input-clear">-->
                <!--</div>-->
                <div class="mui-input-row">
                    <label>需求日期：</label>
                    <input  v-model="info.form.MMRT007" type="date" class="mui-input-clear">
                </div>

                <div class="mui-input-row">
                    <label>收件人：</label>
                    <input v-model="info.form.MMRT009" type="text" class="mui-input-clear" placeholder="请输入收件人">
                </div>
                <div class="mui-input-row">
                    <label>电话：</label>
                    <input v-model="info.form.MMRT010" type="text" class="mui-input-clear" placeholder="请输入电话">
                </div>
                <div class="mui-input-row">
                    <label>配送地址：</label>
                    <input v-model="info.form.MMRT011" type="text" class="mui-input-clear" placeholder="请输入配送地址">
                </div>

            </form>
        </div>
    </div>
    <div class="foot">
        <a id="bjsq-ok" class="puliColor_font conBtn" @tap="submit">提交</a>
        <a id="bjsq-cancel" @tap="cancel">取消</a>
    </div>
</div>
<!--弹出层2   开窗-->
<!--<div class="returnCont aplyCopy modal2" style="display: none;" id="option-modal">-->
    <!--<div class="header">-->
        <!--<p class="puliColor_font" style="font-size: 15px;">选择客户和服务单号</p>-->
    <!--</div>-->
    <!--<div class="main wf-piis-info">-->
        <!--<option-listitem :model="items"></option-listitem>-->
    <!--</div>-->
<!--</div>-->


<script id="item-template" type="text/x-template">
    <ul class="mui-table-view">
        <li v-for="item,i in model" class="mui-table-view-cell">
            <div class="mui-card">
                <div class="mui-card-header">
                    <div class="mui-checkbox mui-left" style="flex: 1 1 0%;"><label>物料编号:{{item.MMRS004}}</label>
                        <input type="checkbox" @change="changed(item.checked)" v-model="item.checked" style="left: -5px;top: 0;"></div>
                </div>
                <div class="mui-card-content">
                    <div class="mui-card-content-inner">
                        <div class="mui-row">
                            <div @tap.stop="showImgs(i)" class="mui-col-xs-3">
                                <!--<div class="goodsImg"><img src="../../static/img/images.png"/></div>-->
                                <div class="goodsImg"><img :src="item.GWAM015 | goodsImgsUtils"/></div>
                            </div>
                            <div class="mui-col-xs-9">
                                <p><span>物料名称：</span>{{item.GWAML003}}</p>
                                <p><span>批号：</span>{{item.MMRS005}}</p>
                                <p><span>单位：</span>{{item.MMRS006|goodsUnits}}</p>
                                <p><span>库存数量：</span>{{item.MMRS008}}</p>
                                <div class="number">
                                    <div class="mui-numbox"  id="numbox_demo2" data-numbox-step="1"
                                         data-numbox-min="0">
                                        <button @tap.stop="minus(item)" class="mui-btn mui-btn-numbox-minus" type="button">-</button>
                                        <input class="mui-input-numbox" type="number" v-model="item.MMRT006">
                                        <button @tap.stop="plus(item)" class="mui-btn mui-btn-numbox-plus" type="button">+</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </li>
    </ul>
</script>

<!--<script id="optionitem-template" type="text/x-template">-->
    <!--<ul class="mui-table-view wf-modal2-cell" style="margin: 0;">-->
        <!--<li class="mui-table-view-cell" v-for="v in model" @tap.stop="select(v)">-->
           <!--<div class="flexTogter">-->
               <!--<p>客户名称:</p>-->
               <!--<p style="padding-left: 10px;">-->
                <!--{{v.gwakl004}}-->
               <!--</p>-->
           <!--</div>-->
           <!--<div class="flexTogter">-->
               <!--<p>维修单号:</p>-->
               <!--<p style="padding-left: 10px;">-->
                 <!--{{v.mmrddocno}}-->
               <!--</p>-->
           <!--</div>-->
        <!--</li>-->
    <!--</ul>-->
<!--</script>-->
</body>
</html>